package com.googlecode.guicehibernate.repository;

import java.io.Serializable;


public interface Repository<T> {

    T save(T entity);

    T update(T entity);

    T saveOrUpdate(T entity);
    
    void delete(Object entity);
    
    T load(Class<T> entityClass, Serializable id);
    
}
